package com.ruoyi.market.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 金额对象 wallet
 *
 * @author ruoyi
 */
public class Wallet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 店铺ID */
    private String shopId;

    /**
     * 金额ID
     */
    @Excel(name = "金额序号", cellType = ColumnType.NUMERIC, prompt = "金额编号")
    private Long walletId;

    /**
     * 帐号状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 排序
     */
    @Excel(name = "排序", cellType = ColumnType.NUMERIC)
    private Long walletSort;

    /**
     * 金额价格
     */
    private BigDecimal walletPrice;

    /**
     * 金额价值
     */
    private BigDecimal walletValue;

    /**
     * 应用ID
     */
    private String appId;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public Wallet() {

    }

    public Wallet(Long walletId) {
        this.walletId = walletId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public Long getWalletId() {
        return walletId;
    }

    public void setWalletId(Long walletId) {
        this.walletId = walletId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getWalletSort() {
        return walletSort;
    }

    public void setWalletSort(Long walletSort) {
        this.walletSort = walletSort;
    }

    public BigDecimal getWalletPrice() {
        return walletPrice;
    }

    public void setWalletPrice(BigDecimal walletPrice) {
        this.walletPrice = walletPrice;
    }

    public BigDecimal getWalletValue() {
        return walletValue;
    }

    public void setWalletValue(BigDecimal walletValue) {
        this.walletValue = walletValue;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("walletId", getWalletId())
                .append("shopId", getShopId())
                .append("walletSort", getWalletSort())
                .append("walletPrice", getWalletPrice())
                .append("walletValue", getWalletValue())
                .append("appId", getAppId())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
